package com.sha.mumbailocal.server.model;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.sha.mumbailocal.server.model.intf.IPersistentObject;

@PersistenceCapable
public class TrainStop implements IPersistentObject {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;

	@Persistent
	private Train train;

	@Persistent
	private Key station;

	@Persistent
	private String arrival;

	@Persistent
	private String departure;

	public Key getStation() {
		return station;
	}

	public void setStation(Key station) {
		this.station = station;
	}

	public String getArrival() {
		return arrival;
	}

	public void setArrival(String arrival) {
		this.arrival = arrival;
	}

	public String getDeparture() {
		return departure;
	}

	public void setDeparture(String departure) {
		this.departure = departure;
	}

	public Key getKey() {
		return key;
	}

}
